/**
 * Created by mantoo on 2017/9/21.
 */
var myChart = echarts.init(document.getElementById('main_demo'));
      var option = {
        title : {
            text: Page.title,

            subtext: '',
            x:'center'
        },
        tooltip : {
            trigger: 'item',
            /*formatter: "{a} <br/>{b} : {c} ({d}%)"*/
            formatter: "{a} <br/>{b} : {d}%"
        },
        legend: {
            orient: 'vertical',
            left: 'left',
            data: []
        },

        series : [
            {
                name: '城市数据',
                type: 'pie',
                radius : '55%',
                center: ['50%', '60%'],
                data:[],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            },
        ]
    };
      var i = 0;
      for (key in Message){
          option.legend.data[i]=key;
          option.series[0].data[i] = {};
          option.series[0].data[i]['value']=Message[key];
          option.series[0].data[i]['name']=key;
          i++;
        }

    myChart.setOption(option);






